package pcsync;
import java.io.Serializable;

/******************************************************
 Project:				PCSync
 Author:				jean-philippe
 File name:				Message.java
 Date created:			Aug 24, 2012
 Date last modified:	Aug 24, 2012
 *******************************************************
 Modification History
 *******************************************************
 Aug 24, 2012		Initial version.
 ******************************************************/

/**
 * @author jean-philippe
 *
 */
public abstract class Message implements Serializable
{
	private static final long serialVersionUID = -6080330631217447599L;
	private int type;
	private Serializable payload;
	private String projectId;
	
	public Message()
	{
		this.type = 0;
		this.payload = null;
		this.projectId = "";
	}
	
	public void setType(int messageType)
	{
		this.type = messageType;
	}
	
	public int getType()
	{
		return this.type;
	}
	
	public void setPayload(Serializable payload)
	{
		this.payload = payload;
	}
	
	public Serializable getPayload()
	{
		return this.payload;
	}
	
	public void setProjectId(String projectId)
	{
		this.projectId = projectId;
	}
	
	public String getProjectId()
	{
		return this.projectId;
	}
}
